<!-- <extend name="Base/common"/> -->

<block name="body">

<style>
.newlip p{float:left;width:49%;
text-overflow: ellipsis;
    overflow: hidden;
    word-wrap: normal;
    white-space: nowrap;
	}
.teatureList li div.LiImg, .teatureList li div.liP {
    padding: 0 28px 20px 28px;
}
.teatureList li p.more a {
    font-size: 28px;
}
.teatureList li div.jinPl span.f-fr {
    padding-top: 0;
}

.teatureList li div.LiImg, .teatureList li div.liP {
    padding: 0px 28px 0px 28px;
}

.newshead{ filter: url(blur.svg#blur); 
    
    -webkit-filter: blur(10px); 
       -moz-filter: blur(10px);
        -ms-filter: blur(10px);    
            filter: blur(10px);
    
    filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius=10, MakeShadow=false); 
	    object-fit: cover;
    height: 400px;
	}
.liP{margin:10px 0;}
.teatureList li .listdiv {
    margin: 10px 20px;
	}
body{height:120%;}
.teatureList li div.LiSpan span {
    margin-bottom: 20px;
    margin-left: 20px;
	}
</style>

		<div id="TeatureAbout">

			<header>

				<a href="{:U('UserMember/userlist')}" class="back">

					<img class="img" src="__IMG__/images/back_03.png"/>

				</a>

				<eq name="is_zj" value="1">自荐</eq>
				<neq name="is_zj" value="1">个人详情</neq>

				<span class="sure">

				<neq name="Think.session.onethink_home.uid" value="$user.id">

					<img src="__IMG__/images/about_03.png"/>

					<span style="display:none;" id="BTns">

							<button class="collect" id="showcheng">收藏</button>

							<button class="collect" id="jubao">举报</button>

					</span>

				</neq>

				</span>

			</header>

			<div class="teature">

				<!-- <img src="__IMG__/images/teature_06.jpg" class="backim"/> -->
				<img id="class-img" src="__ROOT__{$user.logo|getimg=###}" class="backim newshead" />

				<div class="person">
					<div style="    position: relative;
    width: 112px;
    height: 112px;
    margin: 0 auto;">
					<a href="#" class="photo" style="position:static;"><img id="class-img" src="__ROOT__{$user.logo|getimg=###}"/></a>

					<img src="__IMG__/images/

									<switch name='user.sex'>

										<case value='1'>idxe_14</case>

										<case value='2'>girl_03</case>

									</switch>.png" style="position: absolute;
    right: 10px;
    bottom: 0px;
"/>
									</div>

					<p><span>{$user.nickname}</span><span>{$user.age}</span></p>

					<div class="H10"></div>

					<p><img src="__IMG__/images/where_03.png"/>{$user.area_id2|getArea=###}　{$user.area_id|getArea=###}</p>

				</div>

			</div>

			<div class="teatureList">

				<ul>

					<li>
						<h1><img src="__IMG__/images/headLine_07.jpg"/ class="headline">基本资料</h1>
						<div class="liP newlip">
							<p >学校: {$user.school}</p>
							<p >职业: {$user.job}</p>
							<p style="margin-bottom:10px;">星座: {$user.constell}</p>
							<p style="margin-bottom:10px;">兴趣: {$user.love}</p>
							<div class="clear"></div>
						</div>
						
					</li>

					<li>

						<h1><img src="__IMG__/images/headLine_07.jpg"/ class="headline">自我介绍</h1>

						<div class="liP" >

							<p style="padding-bottom:10px;">{$user.introduce}</p>

						</div>

					</li>

					<eq name="Think.get.teaching" value="2">

					<li>

						<h1><img src="__IMG__/images/headLine_07.jpg"/ class="headline">综合评价

						   <span style="margin-left:20px;"><?php echo str_repeat("<img src='__IMG__/images/Star11_11.jpg'/>",$getStar);?><?php echo str_repeat("<img src='__IMG__/images/Star11_14.jpg'/>",5 - $getStar);?></span>

						</h1>

						<div class="LiSpan" style="padding:0px;margin:20px;">

							<notempty name="eva.labels">

								<volist name="eva.labels" id="v">

									<span class="class-span">{$v|getItemTitle='labels',###}</span>

								</volist>

							</notempty>

						</div>

					</li>

					</eq>

					<li class="swiper-container">

						<h1><img src="__IMG__/images/headLine_07.jpg"/ class="headline">我的相册 </h1>

						<div class="LiImg swiper-wrapper" style="height: 150px;  padding:0;  margin: 20px 0;">

						<volist name='imgs' id='v'>

                            <img class="img-class swiper-slide" src="__ROOT__{$v.img|getimg=###}" style="margin-left:25px;"/>

						</volist>

						</div>

					</li>

					<li>

						<h1><img src="__IMG__/images/headLine_07.jpg"/ class="headline"><eq name="Think.get.teaching" value="2">技能</eq><eq name="Think.get.teaching" value="1">想学</eq></h1>

						<volist name="courses" id="v">

						<div class="listdiv">

							<div class="jinPl" style="padding-top:0;">

								<div class="f-fl">

									<h2>{$v.title}</h2>

								</div>

								<span class="f-fr">{$v.salary}元/小时</span>

								<div class="clear"></div>

							</div>

							<p class="lip">{$v.content}</p>

							<eq name="Think.get.teaching" value="2">

							<p class="more" style="margin:0 0 10px 20px;padding:0;"><a href="__MODULE__/CourseEva/commonList/cid/{$v.id}">查看评价({$v.sum})</a></p>

							</eq>

						</div>

						</volist>

					</li>

				</ul>

				

			</div>

			<neq name="Think.session.onethink_home.uid" value="$user.id">

			<neq name="pause" value="1">

				<p class="P-a" login="{:session('uid')}">
<!-- lkl修改自荐没有限制 S-->
				<eq name="Think.get.teaching" value="2">
					<a href="__CONTROLLER__/consult/uid/{$user.id}" class="checked" <eq name="is_zj" value="1">is_zj="1"</eq>>咨询</a>
					
	<!-- lkl修改自荐没有限制 E-->				
					<a href="__MODULE__/Course/userCourses/uid/{$user.id}/teaching/{$Think.get.teaching}" class="moren">预约</a>

				</eq>

				<eq name="Think.get.teaching" value="1">

				<a href="__MODULE__/Message/addMessage/rid/{$user.id}" class="bottomA">自荐</a>

				</eq>

				</p>

			</neq>

			</neq>

			<div class="hidebox">

				<div class="tanc">

					<img src="__IMG__/images/tealoginIMg_03.jpg" class="yinc"/>

					<p><img src="__IMG__/images/tealoginIMg_07.jpg"/>对不起，如需预约，请先登录</p>

					<div>

						<a href="__CONTROLLER__/login" style="margin-right:10px;margin-left:20px;">登录</a>

						<a href="__CONTROLLER__/register" style="margin-left:10px;">注册</a>

					</div>

				</div>

			</div>

		</div>

		<input type="hidden" value="{$is_vip}" name="is_vip" />

<style>

	.P-a .bottomA{display:inline-block;text-align:center;line-height:100px;height:100px;font-size:35px;color:#fff;width:100%;background:#fea52f;margin-top:10px;}

</style>

<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js" type="text/javascript"></script>

<script>

	$(function(){

				// var labels = $('.f-fl h2:first').html();

				var labels = '';

				objs = $('.f-fl h2:lt(2)');

				objs.each(function(){

					labels += $(this).html()+',';

				});

				var str =labels.substring(0,labels.length-1);

				var src = location.host + jQuery("img#class-img").attr("src");

				// alert(src);exit();

				// console.log(src);

				wx.config({

					    //debug: true,   // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。

					    appId: "{$data.appId}",   // 必填，公众号的唯一标识

					    timestamp: {$data.timestamp},   // 必填，生成签名的时间戳

					    nonceStr: "{$data.nonceStr}",   // 必填，生成签名的随机串

					    signature: "{$data.signature}",  // 必填，签名，见附录1

					    jsApiList: [

					    'onMenuShareTimeline' ,'onMenuShareAppMessage' //这里不知道你用的地理接口是哪个就两个都写上了

		      			]   // 必填，需要使用的JS接口列表，所有JS接口列表见附录2

					});



					wx.checkJsApi({



					    jsApiList: [
							'onMenuShareTimeline',
							'onMenuShareAppMessage' 
						],//需要检测的JS接口列表，所有JS接口列表见附录2,



					    success: function(res) {



					    }



					});

					wx.ready(function(){

					    // config信息验证后会执行ready方法，所有接口调用都必须在config接口获得结果之后，config是一个客户端的异步操作，所以如果需要在页面加载时就调用相关接口，则须把相关接口放在ready函数中调用来确保正确执行。对于用户触发时才调用的接口，则可以直接调用，不需要放在ready函数中。

					    if({$_GET['teaching']} == 1){

							wx.onMenuShareTimeline({

					    	title: "【全民教学】我想找个老师教我"+str+"要德艺双馨，包教包会的那种！", // 分享标题

						    link: window.location.href, // 分享链接

						    imgUrl: "http://"+src, // 分享图标

						    success: function () {

						    	alert("分享成功");

						        // 用户确认分享后执行的回调函数

						    },

						    cancel: function () {

						    	alert("取消分享");

						        // 用户取消分享后执行的回调函数

						    }

							});
							
							
							wx.onMenuShareAppMessage({
								title: "【全民教学】", // 分享标题
								desc: "【全民教学】我想找个老师教我"+str+"要德艺双馨，包教包会的那种！", // 分享描述
								link: window.location.href, // 分享链接
								imgUrl: "http://"+src, // 分享图标
								type: '',
								dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
								success: function () { 
									alert("分享成功");
									// 用户确认分享后执行的回调函数
								},
								cancel: function () { 
									alert("取消分享");
									// 用户取消分享后执行的回调函数
								}
							});
							
					    }else{

							wx.onMenuShareTimeline({

					    	title: "【全民教学】想学"+str+"的来这里找我，妈妈从此不用担心你的学习了！", 
							

						    link: window.location.href, // 分享链接

						    imgUrl: "http://"+src, // 分享图标

						    success: function () {

						    	alert("分享成功");

						        // 用户确认分享后执行的回调函数

						    },

						    cancel: function () {

						    	alert("分享失败");

						        // 用户取消分享后执行的回调函数

						    }

							});
							
							wx.onMenuShareAppMessage({
								title: "【全民教学】", // 分享标题
								desc: "【全民教学】想学"+str+"的来这里找我，妈妈从此不用担心你的学习了！", // 分享描述
								link: window.location.href, // 分享链接
								imgUrl: "http://"+src, // 分享图标
								type: '',
								dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
								success: function () { 
									alert("分享成功");
									// 用户确认分享后执行的回调函数
								},
								cancel: function () { 
									alert("取消分享");
									// 用户取消分享后执行的回调函数
								}
							});
							

						    }

					});

	});

	//收藏操作

	$('#showcheng').click(function(){

		var c_uid = '{$user.id}';

		var teaching = '{$Think.get.teaching}';

		$.post('__MODULE__/Collect/add', {'c_uid': c_uid,'teaching': teaching}, function(data) {

			layer.msg(data,{time:2000},function(){

				location.reload();

			});

		});

	});

	//举报

	$('#jubao').click(function(){

		var c_uid = '{$user.id}';

		$.post('__CONTROLLER__/jubao', {c_uid: c_uid}, function(data) {

			layer.msg(data);

			location.reload();

		});

	});

	//未登录不能咨询预约

	$('.P-a .moren').click(function(){

		return is_login($(this));

	});

	function is_login(obj) {

		if (obj.parent().attr('login') == '') {

			$('.hidebox').show();

			return false;

		}

		return true;

	}



	//显示收藏菜单

	$('#TeatureAbout .sure').click(function(event){

		event.stopPropagation();		

		$(this).find('span').css('display','block');

		$(this).find('img').hide();

	});



	$(document).click(function(){

		$('.sure span').hide();

		$('.sure img').show();

	});





	//控制次数

	function check(url) {

		var flag = true;

		var is_vip = $('input[name=is_vip]').val();

		$.ajax({

			url: url,

			async:false,

			type: 'POST',

			success:function(msg){

				if (msg != '') {

					flag = false;

					if (is_vip == 1 || msg.length>18) {

						layer.confirm(msg,{title:'提示',btn:['确认']});

					} else {

						layer.confirm(msg,{title:'提示',btn:['确认','充值会员'],btn2:function(){

							location.href = '__MODULE__/Account/recharge';

						}});

					}

				}

			}

		});

		return flag;

	}

	//控制自荐次数

	$('.P-a .bottomA').click(function(){

		if (is_login($(this)) == true) {
			
			return check('__MODULE__/Message/checked');

		} else {

			return false;

		}

	});

	//咨询

	$('.P-a .checked').click(function(){

		if (is_login($(this)) == true) {

		var is_zj = $(this).attr('is_zj');
			if(is_zj == 1){
				return check('__CONTROLLER__/consult/is_zj/1');
			}else{
				return check('__CONTROLLER__/consult');
			}

		} else {

			return false;

		}

	})

</script>



<script type="text/javascript">

	var hexcase = 0; /* hex output format. 0 - lowercase; 1 - uppercase     */

var b64pad = ""; /* base-64 pad character. "=" for strict RFC compliance  */

var chrsz = 8; /* bits per input character. 8 - ASCII; 16 - Unicode    */

/*

 * These are the functions you'll usually want to call

 * They take string arguments and return either hex or base-64 encoded strings

 */

function hex_sha1(s) {

 return binb2hex(core_sha1(str2binb(s), s.length * chrsz));

}

function b64_sha1(s) {

 return binb2b64(core_sha1(str2binb(s), s.length * chrsz));

}

function str_sha1(s) {

 return binb2str(core_sha1(str2binb(s), s.length * chrsz));

}

function hex_hmac_sha1(key, data) {

 return binb2hex(core_hmac_sha1(key, data));

}

function b64_hmac_sha1(key, data) {

 return binb2b64(core_hmac_sha1(key, data));

}

function str_hmac_sha1(key, data) {

 return binb2str(core_hmac_sha1(key, data));

}

/*

 * Perform a simple self-test to see if the VM is working

 */

function sha1_vm_test() {

 return hex_sha1("abc") == "a9993e364706816aba3e25717850c26c9cd0d89d";

}

/*

 * Calculate the SHA-1 of an array of big-endian words, and a bit length

 */

function core_sha1(x, len) {

 /* append padding */

 x[len >> 5] |= 0x80 << (24 - len % 32);

 x[((len + 64 >> 9) << 4) + 15] = len;

 var w = Array(80);

 var a = 1732584193;

 var b = -271733879;

 var c = -1732584194;

 var d = 271733878;

 var e = -1009589776;

 for (var i = 0; i < x.length; i += 16) {

  var olda = a;

  var oldb = b;

  var oldc = c;

  var oldd = d;

  var olde = e;

  for (var j = 0; j < 80; j++) {

   if (j < 16) w[j] = x[i + j];

   else w[j] = rol(w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16], 1);

   var t = safe_add(safe_add(rol(a, 5), sha1_ft(j, b, c, d)), safe_add(safe_add(e, w[j]), sha1_kt(j)));

   e = d;

   d = c;

   c = rol(b, 30);

   b = a;

   a = t;

  }

  a = safe_add(a, olda);

  b = safe_add(b, oldb);

  c = safe_add(c, oldc);

  d = safe_add(d, oldd);

  e = safe_add(e, olde);

 }

 return Array(a, b, c, d, e);

}

/*

 * Perform the appropriate triplet combination function for the current

 * iteration

 */

function sha1_ft(t, b, c, d) {

 if (t < 20) return (b & c) | ((~b) & d);

 if (t < 40) return b ^ c ^ d;

 if (t < 60) return (b & c) | (b & d) | (c & d);

 return b ^ c ^ d;

}

/*

 * Determine the appropriate additive constant for the current iteration

 */

function sha1_kt(t) {

 return (t < 20) ? 1518500249 : (t < 40) ? 1859775393 : (t < 60) ? -1894007588 : -899497514;

}

/*

 * Calculate the HMAC-SHA1 of a key and some data

 */

function core_hmac_sha1(key, data) {

 var bkey = str2binb(key);

 if (bkey.length > 16) bkey = core_sha1(bkey, key.length * chrsz);

 var ipad = Array(16),

  opad = Array(16);

 for (var i = 0; i < 16; i++) {

  ipad[i] = bkey[i] ^ 0x36363636;

  opad[i] = bkey[i] ^ 0x5C5C5C5C;

 }

 var hash = core_sha1(ipad.concat(str2binb(data)), 512 + data.length * chrsz);

 return core_sha1(opad.concat(hash), 512 + 160);

}

/*

 * Add integers, wrapping at 2^32. This uses 16-bit operations internally

 * to work around bugs in some JS interpreters.

 */

function safe_add(x, y) {

 var lsw = (x & 0xFFFF) + (y & 0xFFFF);

 var msw = (x >> 16) + (y >> 16) + (lsw >> 16);

 return (msw << 16) | (lsw & 0xFFFF);

}

/*

 * Bitwise rotate a 32-bit number to the left.

 */

function rol(num, cnt) {

 return (num << cnt) | (num >>> (32 - cnt));

}

/*

 * Convert an 8-bit or 16-bit string to an array of big-endian words

 * In 8-bit function, characters >255 have their hi-byte silently ignored.

 */

function str2binb(str) {

 var bin = Array();

 var mask = (1 << chrsz) - 1;

 for (var i = 0; i < str.length * chrsz; i += chrsz)

 bin[i >> 5] |= (str.charCodeAt(i / chrsz) & mask) << (24 - i % 32);

 return bin;

}

/*

 * Convert an array of big-endian words to a string

 */

function binb2str(bin) {

 var str = "";

 var mask = (1 << chrsz) - 1;

 for (var i = 0; i < bin.length * 32; i += chrsz)

 str += String.fromCharCode((bin[i >> 5] >>> (24 - i % 32)) & mask);

 return str;

}

/*

 * Convert an array of big-endian words to a hex string.

 */

function binb2hex(binarray) {

 var hex_tab = hexcase ? "0123456789ABCDEF" : "0123456789abcdef";

 var str = "";

 for (var i = 0; i < binarray.length * 4; i++) {

  str += hex_tab.charAt((binarray[i >> 2] >> ((3 - i % 4) * 8 + 4)) & 0xF) + hex_tab.charAt((binarray[i >> 2] >> ((3 - i % 4) * 8)) & 0xF);

 }

 return str;

}

/*

 * Convert an array of big-endian words to a base-64 string

 */

function binb2b64(binarray) {

 var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

 var str = "";

 for (var i = 0; i < binarray.length * 4; i += 3) {

  var triplet = (((binarray[i >> 2] >> 8 * (3 - i % 4)) & 0xFF) << 16) | (((binarray[i + 1 >> 2] >> 8 * (3 - (i + 1) % 4)) & 0xFF) << 8) | ((binarray[i + 2 >> 2] >> 8 * (3 - (i + 2) % 4)) & 0xFF);

  for (var j = 0; j < 4; j++) {

   if (i * 8 + j * 6 > binarray.length * 32) str += b64pad;

   else str += tab.charAt((triplet >> 6 * (3 - j)) & 0x3F);

  }

 }

 return str;

}



$(function(){

	$('.swiper-slide:last').prev().prev().addClass('swiper-no-swiping');

})



$('.img-class').click(function(){

    var src  = $(this).attr("src");

	layer.open({

    	type: 1,

     	area: ['80%'],

    	shadeClose: true, //点击遮罩关闭

    	content: "<img width='100% class='class-img' src='"+src+"'>"

    });

    $('.layui-layer-title').remove();

    $('.layui-layer-shade').css('opacity','0.9');

})

var swiper = new Swiper('.swiper-container',{width:150});

</script>

</block>8661100036199246/545137
